<?php 

// Includes
require_once('./includes/config.php');
require_once('./includes/database.php');
require_once('./includes/session.php');
require_once('./includes/users.php');
require_once('./includes/smarty/Smarty.class.php');

// Setup and initialization
db_setup();
session_continue();

$user = user_logged_in(session_id());

// Smarty code, passes variables to display
$smarty = new Smarty;

$smarty->assign('page_title', $site_name.' | Index');
$smarty->assign('root_folder', $root_folder);
$smarty->assign('ssid', session_id());
$smarty->assign('user', $user);
$smarty->display('profile.tpl');

?>